package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * banner_config（横幅配置表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("banner_config")
@ApiModel(value = "BannerConfig对象", description = "banner_config（横幅配置表）")
public class BannerConfig extends Model<BannerConfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "横幅流水号")
    @TableId("banner_id")
    private String bannerId;

    @ApiModelProperty(value = "横幅图片")
    @TableField("banner_image")
    private String bannerImage;

    @ApiModelProperty(value = "访问地址")
    @TableField("access_address")
    private String accessAddress;

    @ApiModelProperty(value = "访问参数")
    @TableField("access_param")
    private String accessParam;

    @ApiModelProperty(value = "访问类型")
    @TableField("access_type")
    private Integer accessType;

    @ApiModelProperty(value = "是否显示:0显示、1不显示")
    @TableField("is_display")
    private Boolean isDisplay;

    @ApiModelProperty(value = "横幅备注")
    @TableField("banner_remark")
    private String bannerRemark;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Long updateTime;

    @TableField("file_path")
    private String filePath;

    @TableField("banner_type")
    private String bannerType;


    @Override
    protected Serializable pkVal() {
        return this.bannerId;
    }

}
